module.exports = (vm) => {
  // 初始化请求配置
  uni.$tn.http.setConfig((config) => {
    /* config 为默认全局配置*/
    config.baseURL = uni.$biconfig.FULL_API_URL; /* 根域名 */
    config.header = {
      'content-type': 'application/json;charset=UTF-8',
    }
    return config
  })
  require('./requestInterceptors')(vm)
  require('./responseInterceptors')(vm)
}
